.panel.panel-default
    .panel-heading

    .panel-body
		.table-responsive
	      table.table.table-bordered.table-hover
	        tr
	          th 工单号
	          th 客户姓名
	          th 车牌号
	          th 车型
	          th 金额
	          th 状态
	          th 创建人
	          th 创建日期
	          th 操作 
	          
	        -@customer.order_beauties.each do |o|
	          tr
	            td = o.code
	            td = o.customer.name
	            td = o.customer.car_num
	            td = o.customer.car_brand.name+'/'+o.customer.car_model.name rescue ""
	            td = o.total
	            td = o.status
	            td = o.user.name
	            td = o.created_at.strftime('%Y-%m-%d %H:%M:%S')
	            td
	              = link_to "明细", customer_path(:id => params[:id], :show=>'idle1', :bdetail=>o.id), class: "btn btn-primary btn-xs"

        - if @order_beauty
          .table-responsive
	        table.table.table-bordered.table-hover
	          tr
	            th 项目名称
	            th 工时
	            th 价格
	            th 数量
	            th 小计
	          
	          -@order_beauty.order_beauty_items.each do |o|
	            tr
	              td = o.beauty_item.name
	              td = o.beauty_item.working_hour
	              td = o.beauty_item.amount
	              td = o.qty
	              td = o.sub_total